home *** CD-ROM | disk | FTP | other *** search
- Path: serra.unipi.it!athena!chiarito
- From: chiarito@cli.di.unipi.it (Rudi Chiarito)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fixture List Algorithms?!
- Date: 14 Mar 1996 16:45:24 GMT
- Organization: Dipartimento di Informatica, Universita' di Pisa
- Distribution: world
- Message-ID: <4i9if4$gkq@serra.unipi.it>
- References: <Do7JKq.Dot@cf.ac.uk> <686.6646T1224T2589@nando.net>
- NNTP-Posting-Host: athena.cli.di.unipi.it
- X-Newsreader: TIN [version 1.2 PL2]
-
- Andy Philpotts (xyzzy@nando.net) wrote:
-
- : M Wood said:
- : >I am considering writer (yet another...) football management simulation, one
- : >of the stumbling blocks being how to generate the set of fixtures. There must
- : >be a blindingly obvious solution to this?
-
- : Interesting problem, and may only be trivial for certain numbers of teams.
- : A brute force method (consider ALL the possibilities) would probably be OK for
- : small numbers of teams). Just set up a matrix for the games then fill in the
- : blanks, start with random assignment then backup each time you get a
- : contradiction. I am sure there are algorithmic approaches for certain numbers
- : of teams (powers of 2?), but I have no proof of this.
-
- Mmmhh.... I once needed such a routine... it had to be included in a program I
- never released (it's only in Italian .. take a look at the screenshot of the
- pre-alfa version of r2: http://www.cli.di.unipi.it/~chiarito/gol.gif).
- I used an highly optimized assembly routine... I cant remember EXACTLY how
- it works.. it was able to compute LOTS of different fixtures (out of
- (no. of teams)! possible ones) per second.
- OH... and it never let a team play three times in a row 'at home' (is this
- correct? I dont know much about english football terms).
- Let me know if you're interested (be ready to scratch a lot your head, there
- are NO comments!)
-
- --
- ~~~ intel OUTside! ~~ $VER: .signature 3.0 (15.1.96) ~~ intel OUTside! ~~~
-
- "Our blood has stained the coal
- We tunnelled down deep inside the nation's soul
- We matter more than pounds and pence
- Your economic theory makes no sense"
-
- ~ Rudi Chiarito - chiarito@cli.di.unipi.it ~ **E-mail replies, please**
- *IRC* Nutello --- *WWW* http://www.cli.di.unipi.it/~chiarito/
- MISTAKES/MISSPELLINGS ARE FICTIONAL:A SIMILARITY TO REAL ONES IS INCIDENTAL
-